package nrpc.message.meta;

import java.net.InetSocketAddress;

import message.Message;

public class ServerEntry implements Message {

	public String host;
	
	public int port;
	
	public int priority;
	
	public transient long lastActive;
	
	public ServerEntry(){}
	
	public ServerEntry(String host, int port) {
		this.host = host;
		this.port = port;
	}
	
	public ServerEntry(InetSocketAddress address){
		this.host = address.getHostName();
		this.port = address.getPort();
	}
	
}
